﻿using System;
using System.Configuration;

namespace TempEmployees.Web
{
    public class RoleElement : ConfigurationElement
    {
        [ConfigurationProperty("id", IsRequired = true)]
        public int ID
        {
            get { return int.Parse(this["id"].ToString()); }
            set { this["id"] = value; }
        }

        [ConfigurationProperty("firstPage", IsRequired = true)]
        public string FirstPage
        {
            get { return this["firstPage"] as string; }
            set { this["firstPage"] = value; }
        }

        [ConfigurationProperty("menuIndex", IsRequired = true)]
        public int MenuIndex
        {
            get { return int.Parse(this["menuIndex"].ToString()); }
            set { this["menuIndex"] = value; }
        }
    }
}